<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
        <!-- head 文件 -->
        <!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -->
<title><?php echo (C("PLATFORM_NAME")); echo (C("PLATFORM_VERSION")); ?></title>
<meta name="keywords" content="<?php echo ($keywords); ?>" />
<meta name="description" content="<?php echo ($description); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<!-- basic styles -->

<link href="/Public/assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="/Public/assets/css/font-awesome.min.css" />

<!-- 日期CSS -->
<link rel="stylesheet" href="/Public/assets/css/datepicker.css" />
<!-- /.日期CSS -->

<!-- 可编辑表格专用CSS -->
<link rel="stylesheet" href="/Public/assets/css/ui.jqgrid.css" />
<!-- /.可编辑表格专用CSS -->

<!--[if IE 7]>
    <link rel="stylesheet" href="/Public/assets/css/font-awesome-ie7.min.css" />
<![endif]-->

<!-- page specific plugin styles -->

<!-- fonts -->

<!-- ace styles -->

<link rel="stylesheet" href="/Public/assets/css/ace.min.css" />
<link rel="stylesheet" href="/Public/assets/css/ace-rtl.min.css" />
<link rel="stylesheet" href="/Public/assets/css/ace-skins.min.css" />

<!--[if lte IE 8]>
    <link rel="stylesheet" href="/Public/assets/css/ace-ie.min.css" />
<![endif]-->

<!-- inline styles related to this page -->

<!-- ace settings handler -->

<script src="/Public/assets/js/ace-extra.min.js"></script>

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

<!--[if lt IE 9]>
    <script src="/Public/assets/js/html5shiv.js"></script>
    <script src="/Public/assets/js/respond.min.js"></script>
<![endif]-->

<!-- basic scripts -->

<!--[if !IE]> -->

<script src="/Public/assets/js/jquery-2.0.3.min.js"></script>

<!-- <![endif]-->

<!--[if IE]>
    <script src="/Public/assets/js/jquery-2.0.3.min.js"></script>
<![endif]-->

<!--[if !IE]> -->

<script type="text/javascript">
    window.jQuery || document.write("<script src='/Public/assets/js/jquery-2.0.3.min.js'>" + "<" + "/script>");
</script>

<!-- <![endif]-->

<!--[if IE]>
    <script type="text/javascript">
        window.jQuery || document.write("<script src='/Public/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
    </script>
<![endif]-->

<script type="text/javascript">
    if ("ontouchend" in document)
        document.write("<script src='/Public/assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
</script>
<script src="/Public/assets/js/bootstrap.min.js"></script>
<script src="/Public/assets/js/typeahead-bs2.min.js"></script>

<!-- page specific plugin scripts -->

<!--[if lte IE 8]>
    <script src="/Public/assets/js/excanvas.min.js"></script>
<![endif]-->

<script src="/Public/assets/js/jquery-ui-1.10.3.custom.min.js"></script>
<script src="/Public/assets/js/jquery.ui.touch-punch.min.js"></script>
<script src="/Public/assets/js/jquery.slimscroll.min.js"></script>
<script src="/Public/assets/js/jquery.easy-pie-chart.min.js"></script>
<script src="/Public/assets/js/jquery.sparkline.min.js"></script>
<script src="/Public/assets/js/flot/jquery.flot.min.js"></script>
<script src="/Public/assets/js/flot/jquery.flot.pie.min.js"></script>
<script src="/Public/assets/js/flot/jquery.flot.resize.min.js"></script>

<!-- ace scripts -->

<script src="/Public/assets/js/ace-elements.min.js"></script>
<script src="/Public/assets/js/ace.min.js"></script>

<script type="text/javascript" src="/Public/js/artDialog4.1.7/jquery.artDialog.js?skin=default"></script>
<script type="text/javascript" src="/Public/js/artDialog4.1.7/plugins/iframeTools.js"></script>

<script>
    (function (config) {
        config['lock'] = true;
        config['fixed'] = true;
        config['okVal'] = '确定';
        config['cancelVal'] = '取消';
        // [more..]
    })(art.dialog.defaults);
</script>

<!-- 	</head>
        <body> -->
    
    
    <link href="/Public/assets/css/daterangepicker.css" rel="stylesheet">

     
    <script src="/Public/assets/js/date-time/bootstrap-datepicker.min.js"></script>
    <script src="/Public/assets/js/jqGrid/jquery.jqGrid.min.js"></script>
    <script src="/Public/assets/js/jqGrid/i18n/jquery.min.js"></script>

    <script src="/Public/assets/js/jqGrid/i18n/super_slider.js"></script>
    <script src="/Public/assets/js/jqGrid/i18n/grid.locale-en.js"></script>
    <script type="text/javascript">
                var $path_base = "/"; 
    </script>


</head>
<body>
    <!-- Google Analytics 代码检查提示 -->
    <!-- <?php if (!$gaIsExist) { ?>
    <div class="alert alert-danger">
            <button data-dismiss="alert" class="close" type="button">
                    <i class="icon-remove"></i>
            </button>
            <i class="icon-remove"></i>
                    你没有添加
            <strong>
                    Google Analytics
            </strong>
    
            , 请检查代码.
            <br>
    </div>
    <?php } ?> -->
    <!-- /Google Analytics 代码检查提示 -->

    <!-- 顶部导航文件 -->
    <div class="navbar navbar-default" id="navbar">
    <script type="text/javascript">
        try {
            ace.settings.check('navbar', 'fixed')
        } catch (e) {
        }
    </script>

    <div class="navbar-container" id="navbar-container">
        <div class="navbar-header pull-left">
            <a href="#" class="navbar-brand">
                <small>
                    <i class="icon-leaf"></i>
                    <?php echo (C("INDEX_HEADER")); ?>
                </small>
            </a><!-- /.brand -->
        </div><!-- /.navbar-header -->

        <div class="navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav">

                <li class="light-blue">
                    <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                        <!-- <img class="nav-user-photo" src="/Public/assets/avatars/user.jpg" alt="Jason's Photo" /> -->
                        <span class="user-info">
                            <small>Welcome,</small>
                            <?php echo (session('nickname')); ?>
                        </span>

                        <i class="icon-caret-down"></i>
                    </a>

                    <ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">

                        <li>
                            <a href="/Admin/Admin/logout">
                                <i class="icon-off"></i>
                                Logout
                            </a>
                        </li>
                    </ul>
                </li>
            </ul><!-- /.ace-nav -->
        </div><!-- /.navbar-header -->
    </div><!-- /.container -->
</div>

<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <div class="main-container-inner">
        <a class="menu-toggler" id="menu-toggler" href="#"> <span
                class="menu-text"></span>
        </a>
        <!-- 左边导航栏 -->
        
            <div class="sidebar" id="sidebar">
    <script type="text/javascript">
        try {
            ace.settings.check('sidebar', 'fixed')
        } catch (e) {
        }
    </script>

    <div class="sidebar-shortcuts" id="sidebar-shortcuts">
        <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large" style="height: 50px">
            <button class="btn btn-success">
                <i class="icon-signal"></i>
            </button>

            <button class="btn btn-info">
                <i class="icon-pencil"></i>
            </button>

            <button class="btn btn-warning">
                <i class="icon-group"></i>
            </button>

            <button class="btn btn-danger">
                <i class="icon-cogs"></i>
            </button> 
        </div>

        <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
            <span class="btn btn-success"></span> <span class="btn btn-info"></span>
            <span class="btn btn-warning"></span> <span class="btn btn-danger"></span>
        </div>
    </div>
    <!-- #sidebar-shortcuts -->


    <ul class="nav nav-list">
        <?php if(strstr('/Admin/Looks/index', '/Auth')): ?><li class="active open" <?php if(!in_array('/Admin/AuthRule/rule',$user_visit_rules)&&!in_array('/Admin/AuthGroup/group',$user_visit_rules)&&!in_array('/Admin/AuthUser/user',$user_visit_rules)): ?>style="display: none"<?php endif; ?>>
            <?php else: ?>

            <li <?php if(!in_array('/Admin/AuthRule/rule',$user_visit_rules)&&!in_array('/Admin/AuthGroup/group',$user_visit_rules)&&!in_array('/Admin/AuthUser/user',$user_visit_rules)): ?>style="display: none"<?php endif; ?>><?php endif; ?>
                <a href="#" class="dropdown-toggle"> <i class="icon-cog"></i>
                    <span class="menu-text"> 权限设置 </span> <b
                        class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <?php if(strstr('/Admin/Looks/index', '/AuthRule')): ?><li class="active"<?php if(!in_array('/Admin/AuthRule/rule',$user_visit_rules)): ?>style="display: none"<?php endif; ?>>
                        <?php else: ?>
                        <li <?php if(!in_array('/Admin/AuthRule/rule',$user_visit_rules)): ?>style="display: none"<?php endif; ?>><?php endif; ?>
                    <a href="/Admin/AuthRule/rule"> <i
                            class="icon-double-angle-right"></i> 规则列表
                    </a></li>

                    <?php if(strstr('/Admin/Looks/index', '/AuthGroup')): ?><li class="active" <?php if(!in_array('/Admin/AuthGroup/group',$user_visit_rules)): ?>style="display: none"<?php endif; ?>>
                        <?php else: ?>
                        <li <?php if(!in_array('/Admin/AuthGroup/group',$user_visit_rules)): ?>style="display: none"<?php endif; ?>><?php endif; ?>
                    <a href="/Admin/AuthGroup/group"> <i
                            class="icon-double-angle-right"></i> 群组列表
                    </a></li>

                    <?php if(strstr('/Admin/Looks/index', '/AuthUser')): ?><li class="active"<?php if(!in_array('/Admin/AuthUser/user',$user_visit_rules)): ?>style="display: none"<?php endif; ?>>
                        <?php else: ?>
                        <li <?php if(!in_array('/Admin/AuthUser/user',$user_visit_rules)): ?>style="display: none"<?php endif; ?>><?php endif; ?>
                    <a href="/Admin/AuthUser/user"> <i
                            class="icon-double-angle-right"></i> 用户列表
                    </a></li>
                </ul>
            </li>
		<!-- 自定义后台菜单 -->
		<?php if(strstr('/Admin/Looks/index', '/MemberInfo')||strstr('/Admin/Looks/index', '/MemberInfo')): ?><li class="active open">
            <?php else: ?>
            <li><?php endif; ?>
        <a href="#" class="dropdown-toggle"> 
            <i class="icon-cog"></i>
            <span class="menu-text"> 会员信息管理 </span>
            <b  class="arrow icon-angle-down"></b>
        </a>
        <ul class="submenu">
            <?php if(strstr('/Admin/Looks/index', '/MemberInfo')): ?><li class="active">
                <?php else: ?>
                <li><?php endif; ?>
                <a href="/Admin/MemberInfo/index"> 
                    <i class="icon-double-angle-right"></i> 会员信息
                </a>
            </li>

                   
                </ul>
            </li>
<!-- 衣橱 -->
        <?php if(strstr('/Admin/Looks/index', '/CloserCommodity/editRule')||strstr('/Admin/Looks/index', '/CloserCommodity/index')||strstr('/Admin/Looks/index', '/CloserCommodity/addRule')): ?><li class="active open">
            <?php else: ?>
            <li><?php endif; ?>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 商品管理 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <?php if(strstr('/Admin/Looks/index', '/CloserCommodity/')): ?><li class="active">
                        <?php else: ?>
                        <li><?php endif; ?>
                            <a href="/Admin/CloserCommodity/index"> 
                                <i class="icon-double-angle-mid"></i> 商品列表
                            </a>
                        </li>
                </ul>
            </li>
<!-- 造型 -->
        <?php if(strstr('/Admin/Looks/index', '/Looks')||strstr('/Admin/Looks/index', '/Looks')): ?><li class="active open">
            <?php else: ?>
            <li><?php endif; ?>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 造型管理 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <?php if(strstr('/Admin/Looks/index', '/Looks')): ?><li class="active">
                        <?php else: ?>
                        <li><?php endif; ?>
                            <a href="/Admin/Looks/index"> 
                                <i class="icon-modelling"></i> 造型列表
                            </a>
                        </li>
                </ul>
            </li>
<!-- Calendar  -->
        <?php if(strstr('/Admin/Looks/index', '/Calendar')||strstr('/Admin/Looks/index', '/Calendar')): ?><li class="active open">
                    <?php else: ?>
                    <li><?php endif; ?>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 日历 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <?php if(strstr('/Admin/Looks/index', '/Calendar')): ?><li class="active">
                        <?php else: ?>
                        <li><?php endif; ?>
                            <a href="/Admin/Calendar/index"> 
                                <i class="icon-calendar"></i> 日历列表
                            </a>
                        </li>
                </ul>
            </li>
<!-- yichu   --> 
        <?php if(strstr('/Admin/Looks/index', '/CloserCommodity/closer')||strstr('/Admin/Looks/index', '/CloserCommodity/closer')): ?><li class="active open">
            <?php else: ?>
            <li><?php endif; ?>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 衣橱管理 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <?php if(strstr('/Admin/Looks/index', '/CloserCommodity/closer')): ?><li class="active">
                        <?php else: ?>
                        <li><?php endif; ?>
                            <a href="/Admin/CloserCommodity/closer"> 
                                <i class="icon-double-angle-mid"></i> 衣橱列表
                            </a>
                        </li>
                </ul>
            </li>
<!-- yichu   --> 
        <?php if(strstr('/Admin/Looks/index', '/BhType')||strstr('/Admin/Looks/index', '/BhType')): ?><li class="active open">
            <?php else: ?>
            <li><?php endif; ?>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 衣橱商品类别管理 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <?php if(strstr('/Admin/Looks/index', '/BhType')): ?><li class="active">
                        <?php else: ?>
                        <li><?php endif; ?>
                            <a href="/Admin/BhType"> 
                                <i class="icon-double-angle-mid"></i> 类别列表
                            </a>
                        </li>
                </ul>
            </li>
<!-- BhLabel   --> 
        <?php if(strstr('/Admin/Looks/index', '/BhLabel')||strstr('/Admin/Looks/index', '/BhLabel')): ?><li class="active open">
            <?php else: ?>
            <li><?php endif; ?>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 造型类别管理 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <?php if(strstr('/Admin/Looks/index', '/BhLabel')): ?><li class="active">
                        <?php else: ?>
                        <li><?php endif; ?>
                            <a href="/Admin/BhLabel"> 
                                <i class="icon-double-angle-mid"></i> 类别列表
                            </a>
                        </li>
                </ul>
            </li>

<!-- BhLabel   --> 
        <?php if(strstr('/Admin/Looks/index', '/ImageMatting')||strstr('/Admin/Looks/index', '/ImageMatting')): ?><li class="active open">
            <?php else: ?>
            <li><?php endif; ?>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 图片去背测试 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <?php if(strstr('/Admin/Looks/index', '/ImageMatting/index')): ?><li class="active">
                        <?php else: ?>
                        <li><?php endif; ?>
                            <a href="/Admin/ImageMatting/index"> 
                                <i class="icon-double-angle-mid"></i> 上传图片去背
                            </a>
                        </li>
                </ul>
            </li>





    </ul>


    <!-- /.nav-list -->

    <div class="sidebar-collapse" id="sidebar-collapse">
        <i class="icon-double-angle-left" data-icon1="icon-double-angle-left"
           data-icon2="icon-double-angle-right"  data-icon3="icon-double-angle-mid"  
           data-icon4="icon-modelling"  data-icon5="icon-calendar"  data-icon6="icon-yichu" ></i>
    </div>

    <script type="text/javascript">
        try {
            ace.settings.check('sidebar', 'collapsed')
        } catch (e) {
        }
    </script>
</div>
        
        <div class="main-content">
            <!-- 面包屑 -->
            
                <div class="breadcrumbs" id="breadcrumbs">
    <script type="text/javascript">
        try {
            ace.settings.check('breadcrumbs', 'fixed')
        } catch (e) {
        }
    </script>

    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i> 
            <?php echo ($groupName); ?>
        </li>
        <li><?php echo ($moduleName); ?></li>
        <li class="active"><?php echo ($actionName); ?></li>
    </ul>
    <!-- .breadcrumb -->

    <div class="nav-search" id="nav-search">
        <form class="form-search">
            <span class="input-icon"> <input type="text"
                                             placeholder="Search ..." class="nav-search-input"
                                             id="nav-search-input" autocomplete="off" /> <i
                                             class="icon-search nav-search-icon"></i>
            </span>
        </form>
    </div>
    <!-- #nav-search -->
</div>
            
            <!-- 页面内容 -->
            <div class="page-content">
                
    <div style="padding-bottom:5px;">
        <button class="btn btn-primary btn-xs" onclick="location.href = '<?php echo U('addRule');?>'">添加造型</button>
    </div>
    <div  class=""  style="height: 40px;">
        <span class="input-icon"> 
            <input type="text" placeholder="查询用户"   value="<?php echo ($nicknamex); ?>"
            class="nav-search-input" id="nickname" autocomplete="off" /> 
        </span>
        <span class="input-icon"> 
            <select  id="test"> 
                <option value="">全部</option>
                <?php if(is_array($_listopt)): $i = 0; $__LIST__ = $_listopt;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$opt): $mod = ($i % 2 );++$i;?><option <?php if($bname_id == $opt['id']): ?>selected<?php endif; ?> value ="<?php echo ($opt["id"]); ?>"><?php echo ($opt["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
            </select>
            <!-- <span><?php echo ($bname_id); ?></span> -->
            <!-- <i class="icon-search nav-search-icon"></i> -->
        </span>
        <span class="input-icon"> 
            <input type="text" placeholder="查询名称"  value="<?php echo ($aname); ?>"
            class="nav-search-input" id="aname" autocomplete="off" /> 
            <!-- <i class="icon-search nav-search-icon"></i> -->
        </span>
       
        <span class="input-icon"> 
            <input type="text" placeholder="查询附注"   value="<?php echo ($memo); ?>"
            class="nav-search-input" id="memo" autocomplete="off" /> 
            <!-- <i class="icon-search nav-search-icon"></i> -->
        </span>
        <input type="button" id="search" value="查询"/>
         
    </div>
    <div class="row">
        <div class="col-xs-12">
            <table class="table table-striped table-bordered table-hover">
                <thead>
                    <tr>                    
                        <th>所属用户</th>
                        <th>所属类型</th>
                        <th>标签</th>
                        <th>造型合成图片</th>
                        <th>本造型组成元素</th>
                        <th>创建时间</th>
                        <th>更新时间</th>
                        <th>状态</th>
                        <th>名称</th>
                        <th>附注</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    <?php if(is_array($_list)): $i = 0; $__LIST__ = $_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                            <td><?php echo ($vo["nickname"]); ?></td>
                            <td><?php echo ($vo["cate"]); ?></td>
                            <td><?php echo ($vo["bname"]); ?></td>                  
                            <td>
                                <img src="<?php echo ($vo["img"]); ?>" style='width:150px'>       
                            </td>
                            <td  style="width:150px">
                                        <!-- <?php if(is_array($vo['sub_imgs_arr'])): $i = 0; $__LIST__ = $vo['sub_imgs_arr'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$voi): $mod = ($i % 2 );++$i;?><img src="<?php echo ($voi); ?>" style='height: 150px'><?php endforeach; endif; else: echo "" ;endif; ?> -->
                                <div class="box<?php echo ($vo["id"]); ?>"  style="position: relative;">
                                    <span class="prev<?php echo ($vo["id"]); ?>  shangyz"  style="cursor: pointer;"></span>
                                    <div  >
                                    <dl class="roll<?php echo ($vo["id"]); ?>">
                                        <?php if(is_array($vo['sub_imgs_arr'])): $i = 0; $__LIST__ = $vo['sub_imgs_arr'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$voi): $mod = ($i % 2 );++$i;?><img src="<?php echo ($voi); ?>" style='width: 200px'><?php endforeach; endif; else: echo "" ;endif; ?>
                                    </dl>
                                    </div>
                                    <span class="next<?php echo ($vo["id"]); ?>  xiayz"  style="cursor: pointer;"></span>
                                </div> 
                            </td>
                            <td><?php echo ($vo["create_time"]); ?></td>
                            <td><?php echo ($vo["update_time"]); ?></td>
                            <td id="status<?php echo ($vo["id"]); ?>"><?php echo ($vo["status_str"]); ?></td>
                            <td><?php echo ($vo["aname"]); ?></td>
                            <td><?php echo ($vo["memo"]); ?></td>
                            <td>
                                <span class=" icon-pencil blue" title="编辑" style="cursor: pointer;" onclick="editRule(<?php echo ($vo["id"]); ?>);"></span>
                                &nbsp;&nbsp;
                                <span class=" icon-trash red" title="删除" style="cursor: pointer;" onclick="delRule(<?php echo ($vo["id"]); ?>);"></span>
                            </td>
                        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                </tbody>
            </table>
            <div class="pager"><?php echo ($_page); ?></div>
        </div>
    </div><!-- /.row -->

    <script type="text/javascript">
            //编辑任务
        function editRule(ruleid){
            location.href = "/Admin/Looks/editRule/id/" + ruleid;
        }
          //删除任务
        function delRule(ruleid){
            art.dialog.confirm('确定删除?', function () {
                $.ajax({
                    type: "POST",
                    url: "/Admin/Looks/deleteRule",
                    dataType: 'json',
                    data: {id:ruleid},
                    async: false,
                    error:function(){
                        art.dialog.alert("操作失败");
                    },
                    success: function(data){
                        if (data.status == 1) {
                            location.href = "/Admin/Looks/index"; //刷新
                        } else {
                            art.dialog.alert(data.info);
                        }
                    }
                });
            });
        }
         $("#search").click(function(){
            var nicknamex=$('#nickname').val();
            var bname=$("#test option:selected").val();
            var aname=$('#aname').val();
            var memo=$('#memo').val();
            if(nicknamex !=''){
                nicknamex="/nicknamex/"+nicknamex;
            }
            if(aname !=''){
                aname="/aname/"+aname;
            }
            if(memo !=''){
                memo="/memo/"+memo;
            }
            if(bname !=''){
                bname="/bname/"+bname;
            }
            location.href = "/Admin/Looks/index"+nicknamex+aname+memo+bname;
        });
        // 状态切换  ajax
        $(document).ready(function(){
                $('body').on('click', '.hand', function(){
                    var ad ={};
                    ad['id'] = $(this).attr('index');
                    ad['type'] =$(this).prev().text();
                    var id = $(this).attr('index');
                    var type = $(this).prev().text();
                    $.ajax({
                        cache:false,
                        type: "POST",
                        url: "/Admin/Looks/status_change",
                        data:ad,
                        error:function(){
                            alert("网络原因修改失败,请稍候再试");
                        },
                        success:function(data){                        
                            if(data.status==1){    
                                var html = '';
                                if (type == '有效') {
                                    html += "<span class=\"label label-sm label-info arrowed-in\">无效</span>&nbsp;|&nbsp;&nbsp;&nbsp;<span class=\"hand icon-unlock green bigger-125\" style=\"cursor: pointer;\" title=\"启用\"  index='" + id + "' ></span>";
                                } else {
                                    html += "<span class=\"label label-sm label-success arrowed-in\">有效</span>&nbsp;|&nbsp;&nbsp;&nbsp;<span class=\"hand icon-lock red bigger-125\" style=\"cursor: pointer;\" title=\"禁用\"  index='" + id + "' ></span>";
                                }
                                $('#status' + id).html(html);
                            }else{
                                alert(data.info);
                        }
                    }
                    });
            });
        }) 
    </script>
    <script type="text/javascript">
        
        <?php if(is_array($_list)): $i = 0; $__LIST__ = $_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>$(".box<?php echo ($vo["id"]); ?>").superSlider({
                prevBtn:     ".prev<?php echo ($vo["id"]); ?>",//左按钮
                nextBtn:     ".next<?php echo ($vo["id"]); ?>",//右按钮
                listCont:    ".roll<?php echo ($vo["id"]); ?>",//滚动列表外层
                scrollWhere: "next",//自动滚动方向next
                delayTime:   2000,//自动轮播时间间隔
                speed:       300,//滚动速度
                amount:      1,//单次滚动数量
                showNum:     1,//显示数量
                autoPlay:    true//自动播放
            });<?php endforeach; endif; else: echo "" ;endif; ?>
    </script>

            </div>
            <!-- /.page-content -->
        </div>
        <!-- /.main-content -->
        <!-- 设置容器 -->
        
            <!-- <div class="ace-settings-container" id="ace-settings-container">
    <div class="btn btn-app btn-xs btn-warning ace-settings-btn"
         id="ace-settings-btn">
        <i class="icon-cog bigger-150"></i>
    </div>

    <div class="ace-settings-box" id="ace-settings-box">
        <div>
            <div class="pull-left">
                <select id="skin-colorpicker" class="hide">
                    <option data-skin="default" value="#438EB9">#438EB9</option>
                    <option data-skin="skin-1" value="#222A2D">#222A2D</option>
                    <option data-skin="skin-2" value="#C6487E">#C6487E</option>
                    <option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
                </select>
            </div>
            <span>&nbsp; Choose Skin</span>
        </div>

        <div>
            <input type="checkbox" class="ace ace-checkbox-2"
                   id="ace-settings-navbar" /> <label class="lbl"
                   for="ace-settings-navbar"> Fixed Navbar</label>
        </div>

        <div>
            <input type="checkbox" class="ace ace-checkbox-2"
                   id="ace-settings-sidebar" /> <label class="lbl"
                   for="ace-settings-sidebar"> Fixed Sidebar</label>
        </div>

        <div>
            <input type="checkbox" class="ace ace-checkbox-2"
                   id="ace-settings-breadcrumbs" /> <label class="lbl"
                   for="ace-settings-breadcrumbs"> Fixed Breadcrumbs</label>
        </div>

        <div>
            <input type="checkbox" class="ace ace-checkbox-2"
                   id="ace-settings-rtl" /> <label class="lbl" for="ace-settings-rtl">
                Right To Left (rtl)</label>
        </div>

        <div>
            <input type="checkbox" class="ace ace-checkbox-2"
                   id="ace-settings-add-container" /> <label class="lbl"
                   for="ace-settings-add-container"> Inside <b>.container</b>
            </label>
        </div>
    </div>
</div>
 -->
        
    </div>
    <!-- /.main-container-inner -->

    <!-- 到顶部按钮 -->
    
        <a href="#" id="btn-scroll-up"
   class="btn-scroll-up btn btn-sm btn-inverse"> <i
        class="icon-double-angle-up icon-only bigger-110"></i>
</a>
    
</div>
<!-- /.main-container -->

</body>
</html>